#ifndef USERINFO_H
#define USERINFO_H

#include <QObject>
#include <QTime>

class UserInfo : public QObject
{
    Q_OBJECT
public:
    explicit UserInfo(QObject *parent = nullptr);

    UserInfo(QString name,QString pwd);
    UserInfo(int id,QString name,QString pwd);
    UserInfo(int id,QString name,QString pwd,QDateTime createtime);

    void setUserId(int id);
    int getUserId();
    void setUserName(QString name);
    QString getUserName();
    void setPassword(QString pwd);
    QString getPassword();


private:
    int userId; //用户id
    QString userName; //用户名
    QString password; //密码
    QDateTime createTime; //创建时间

};

#endif // USERINFO_H
